/*******************************************************************************
 * Copyright (c) 2011 Grupo de Sistemas Inteligentes (GSI) - DIT UPM
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *******************************************************************************/
package es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.util;

import es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.*;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * The <b>Adapter Factory</b> for the model.
 * It provides an adapter <code>createXXX</code> method for each class of the model.
 * <!-- end-user-doc -->
 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.EclipseJadexPackage
 * @generated
 */
public class EclipseJadexAdapterFactory extends AdapterFactoryImpl {
	/**
	 * The cached model package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected static EclipseJadexPackage modelPackage;

	/**
	 * Creates an instance of the adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EclipseJadexAdapterFactory() {
		if (modelPackage == null) {
			modelPackage = EclipseJadexPackage.eINSTANCE;
		}
	}

	/**
	 * Returns whether this factory is applicable for the type of the object.
	 * <!-- begin-user-doc -->
	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
	 * <!-- end-user-doc -->
	 * @return whether this factory is applicable for the type of the object.
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object object) {
		if (object == modelPackage) {
			return true;
		}
		if (object instanceof EObject) {
			return ((EObject)object).eClass().getEPackage() == modelPackage;
		}
		return false;
	}

	/**
	 * The switch that delegates to the <code>createXXX</code> methods.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected EclipseJadexSwitch<Adapter> modelSwitch =
		new EclipseJadexSwitch<Adapter>() {
			@Override
			public Adapter caseProject(Project object) {
				return createProjectAdapter();
			}
			@Override
			public Adapter caseAgent(Agent object) {
				return createAgentAdapter();
			}
			@Override
			public Adapter caseBeliefs(Beliefs object) {
				return createBeliefsAdapter();
			}
			@Override
			public Adapter caseCapabilities(Capabilities object) {
				return createCapabilitiesAdapter();
			}
			@Override
			public Adapter caseConfigurations(Configurations object) {
				return createConfigurationsAdapter();
			}
			@Override
			public Adapter caseEvents(Events object) {
				return createEventsAdapter();
			}
			@Override
			public Adapter caseExpressions(Expressions object) {
				return createExpressionsAdapter();
			}
			@Override
			public Adapter caseGoals(Goals object) {
				return createGoalsAdapter();
			}
			@Override
			public Adapter caseImports(Imports object) {
				return createImportsAdapter();
			}
			@Override
			public Adapter casePlans(Plans object) {
				return createPlansAdapter();
			}
			@Override
			public Adapter caseProperties(Properties object) {
				return createPropertiesAdapter();
			}
			@Override
			public Adapter defaultCase(EObject object) {
				return createEObjectAdapter();
			}
		};

	/**
	 * Creates an adapter for the <code>target</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param target the object to adapt.
	 * @return the adapter for the <code>target</code>.
	 * @generated
	 */
	@Override
	public Adapter createAdapter(Notifier target) {
		return modelSwitch.doSwitch((EObject)target);
	}


	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Project <em>Project</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Project
	 * @generated
	 */
	public Adapter createProjectAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Agent <em>Agent</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Agent
	 * @generated
	 */
	public Adapter createAgentAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Beliefs <em>Beliefs</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Beliefs
	 * @generated
	 */
	public Adapter createBeliefsAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Capabilities <em>Capabilities</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Capabilities
	 * @generated
	 */
	public Adapter createCapabilitiesAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Configurations <em>Configurations</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Configurations
	 * @generated
	 */
	public Adapter createConfigurationsAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Events <em>Events</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Events
	 * @generated
	 */
	public Adapter createEventsAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Expressions <em>Expressions</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Expressions
	 * @generated
	 */
	public Adapter createExpressionsAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Goals <em>Goals</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Goals
	 * @generated
	 */
	public Adapter createGoalsAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Imports <em>Imports</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Imports
	 * @generated
	 */
	public Adapter createImportsAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Plans <em>Plans</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Plans
	 * @generated
	 */
	public Adapter createPlansAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for an object of class '{@link es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Properties <em>Properties</em>}'.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null so that we can easily ignore cases;
	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @see es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.Properties
	 * @generated
	 */
	public Adapter createPropertiesAdapter() {
		return null;
	}

	/**
	 * Creates a new adapter for the default case.
	 * <!-- begin-user-doc -->
	 * This default implementation returns null.
	 * <!-- end-user-doc -->
	 * @return the new adapter.
	 * @generated
	 */
	public Adapter createEObjectAdapter() {
		return null;
	}

} //EclipseJadexAdapterFactory
